export default [
  {
    path: '/',
    component: '@/layouts/BottomLayout',
    routes: [
      {
        exact: true,
        path: '/home',
        component: '@/pages/home',
      },
      {
        exact: true,
        path: '/login',
        component: '@/pages/login',
      },
      {
        exact: true,
        path: '/search',
        component: '@/pages/search',
      },
      {
        path: '/',
        redirect: '/home',
      },
      {
        path: '/',
        component: '@/layouts/LoginLayout',
        routes: [
          {
            exact: true,
            path: '/shopcar',
            component: '@/pages/shopcar',
          },
          {
            exact: true,
            path: '/user',
            component: '@/pages/user',
          },
          {
            exact: true,
            path: '/orderlist',
            component: '@/pages/orderList',
          },
        ],
      },
    ],
  },
];
